package main

import "fmt"

func main() {
	forT1()
}

func forT1() {
	for a := 0; a <= 7; a++ {
		for b := 0; b <= 5; b++ {
			fmt.Printf("b:%d\n", b)
		}
		fmt.Printf("a:%d\n", a)
	}

	rs := [3]int{1, 2, 3}
	for k, v := range rs {
		println("k and v", k, v)
	}
}

func forT2() {
	var i interface{}
	i = "100.00"
	switch t := i.(type) {
	case int:
		println("t is int", t)
		break
	case float64:
		println("t is float", t)
		break
	case string:
		println("t is str", t)
	default:
		println("t is not found")
	}
}
